﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using BaseEntities;
using DataAccess;

namespace BussinessLogic
{
    public class CardBLL
    {
        DataAccess.DataAccess DB = new DataAccess.DataAccess();
        public int GetAccountID(string CardNo)
        {
            Card c = new Card();
            string query = "EXEC [GetAccountID] @CardNo"; 
            SqlParameter paramCardNo = new SqlParameter("@CardNo", CardNo);
            c.AccountID = DB.GetAccountID(query, paramCardNo);
            return c.AccountID;
        }
    }
}
